package org.dromara.run.domain;

import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 跑步规则表对象 phy_run_rule
 *
 * @author chl
 * @date 2024-09-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("phy_run_rule")
public class Rule extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO, value = "rule_id")
    private Long ruleId;

    /**
     * 规则名称
     */
    private String ruleName;

    /**
     * 学期时段开始
     */
    private Date semesterPeriodBegin;

    /**
     * 学期时段结束
     */
    private Date semesterPeriodEnd;

    /**
     * 规则时间段开始
     */
    private Date ruleTimeBegin;

    /**
     * 规则时间段结束
     */
    private Date ruleTimeEnd;

    /**
     * 总次数
     */
    private Long totalRequired;

    /**
     * 课外跑
     */
    private String extraRunId;

    /**
     * 晨跑
     */
    private String morningRunId;

    /**
     * 性别
     */
    private String gender;

    /**
     * 总里程范围
     */
    private double mileageBegin;
    /**
     * 总里程范围
     */
    private double mileageEnd;


}
